package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZyDwdTfcOptSpeedRidAmapRtRowMapper implements RowMapper<ZyDwdTfcOptSpeedRidAmapRt>{



	@Override
	public ZyDwdTfcOptSpeedRidAmapRt mapRow(ResultSet rs, int rowNum) throws SQLException {
		ZyDwdTfcOptSpeedRidAmapRt  lj= new ZyDwdTfcOptSpeedRidAmapRt();
		lj.setRid(rs.getString("rid"));
		lj.setRoadLevel(rs.getInt("road_level"));
		lj.setSpeed(rs.getDouble("speed"));
		lj.setNostopSpeed(rs.getDouble("nostop_speed"));
		lj.setJhpt_update_time(rs.getTimestamp("jhpt_update_time"));
		lj.setLen(rs.getDouble("len"));
		lj.setNostop_travel_time(rs.getDouble("nostop_travel_time"));
		lj.setTravel_time(rs.getDouble("travel_time"));
		return lj;
	}

}
